'use strict';

module.exports = {
	port: 8001,
	url: 'mongodb://localhost:27017/elm',
	session: {
		name: 'SID',
		secret: 'SID',
		cookie: {
			httpOnly: true,
		    secure:   false,
		    maxAge:   365 * 24 * 60 * 60 * 1000,
		}
	},
	status: {
		responsecodeSucceed: 1,
        httpCodeSucceed: 200,
        httpCodeServerError: 500,
        httpCodeForbidden: 403,
        resCodeLoginNoPassword: 1000002,
        resCodeLoginPasswordError: 1000003,
        resCodeDayuError: 1000004,
		resCodeDayuNoCode: 1000005,
		resCodeDayuNoPassword: 1000006,
		resCodeUserInfoNoNickName: 1000010,
        resCodeUserInfoNoCity: 1000011,
        resCodeUserInfoNoProfile_image_url: 1000012,
        resCodeUserInfoNoSex: 1000013,
        resCodeUserInfoNoBirthday: 1000014,
        resCodeUserInfoNoSource: 1000015,
		resCodeLoginNoPhoneUser: 1000016,
		resCodeDeviceInfoNODeviceID: 1000017,
        resCodeDeviceAddNODeviceID: 1000019,
        resCodeDeviceAddAlreadBind: 1000020
	}
}